package com.igrowing.example.consumer;


import com.igrowing.easyRpc.config.RpcConfig;
import com.igrowing.easyRpc.proxy.ServiceProxyFactory;
import com.igrowing.easyRpc.utils.ConfigUtils;
import com.igrowing.example.common.model.User;
import com.igrowing.example.common.service.UserService;

public class EasyConsumerExample {

    public static void main(String[] args) {

        // TODO: 2024/7/21 获取服务实例 
        UserService userService = ServiceProxyFactory.getProxy(UserService.class);
        User user = new User();
        user.setName("ztc");
        User user1 = userService.getUser(user);
        if (user1!=null)
        {
            System.out.println(user1.getName());
        }
        else
        {
            System.out.println("user==null");
        }
    }


}
